﻿@model AppSeguro.Models.Contatos

@{
    ViewBag.Title = "AlteraContato";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Alterar Contato</h2>

@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    

    @Html.HiddenFor(model => model.Id)
    @Html.HiddenFor(model => model.IdUsuario)

    <div class="form-group">
        @Html.LabelFor(model => model.Nome)
        <div>
            @Html.EditorFor(model => model.Nome)
            @Html.ValidationMessageFor(model => model.Nome)
        </div>
    </div>

    <div class="form-group">
        @Html.LabelFor(model => model.Email)
        <div>
            @Html.EditorFor(model => model.Email)
            @Html.ValidationMessageFor(model => model.Email)
        </div>
    </div>

    <div class="form-group">
        @Html.LabelFor(model => model.Telefone)
        <div>
            @Html.EditorFor(model => model.Telefone)
            @Html.ValidationMessageFor(model => model.Telefone)
        </div>
    </div>

    <div class="form-group">
        @Html.LabelFor(model => model.Celular)
        <div>
            @Html.EditorFor(model => model.Celular)
            @Html.ValidationMessageFor(model => model.Celular)
        </div>
    </div>

    <div class="form-group">
        @Html.LabelFor(model => model.TelComercial)
        <div>
            @Html.EditorFor(model => model.TelComercial)
            @Html.ValidationMessageFor(model => model.TelComercial)
        </div>
    </div>

    <div class="form-group">
        <div class="col-sm-offset-2">
            <button class="btn btn-primary" type="submit">Alterar</button>
            @Html.ActionLink("Voltar", "Index", null, new { @class = "btn btn-warning" })
        </div>
    </div>
}
@section Scripts {
    
}
